using System;
using System.Collections.Generic;
using System.Text;

using System.Data;
using Husb.Data;
using Husb.Util;
using CentralOffice.Task.Data;
using CentralOffice.Task.DataAccess;
using CategoryTable = CentralOffice.Task.Data.TaskCategoryDataSet.TaskCategoryDataTable;
using CategoryRow = CentralOffice.Task.Data.TaskCategoryDataSet.TaskCategoryRow;

namespace CentralOffice.Task.BusinessActions
{
    public class TaskCategory : DataAccessManager<TaskCategoryDataSet, CategoryTable, CategoryRow, TaskCategoryAdapter>
    {
        public static CategoryTable GetCategoryTree()
        {
            TaskCategoryAdapter adapter = new TaskCategoryAdapter();
            return adapter.GetCategoryTree();
        }

        public static int GetTaskCountByCategoryId(Guid categoryId)
        {
            TaskCategoryAdapter adapter = new TaskCategoryAdapter();
            return adapter.GetTaskCountByCategoryId(categoryId);
        }
    }
}
